﻿using System;

namespace FlowersStore
{
    public partial class Payment : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
			if (Session["order"] != null)
			{
				UserOrder order = (UserOrder)Session["order"];
				lblOrder.Text = order.id.ToString();
				tbDescription.Value = string.Format("Оплата заказа №{0}", order.id);
				tbTotalPrice.Value = order.TotalPrice.ToString();
				tbValletNumber.Value = "11111111";				
			}
			else
				Response.Redirect("default.aspx");
        }
    }
}